package com.gxa.service;

import com.gxa.pojo.OutStorage;

import java.util.List;
import java.util.Map;

/**
 * @author 陈静
 * @date 2020/9/25 14:40
 */
public interface OutStorageService {
    List<Map<String,Object>> findStoreName();

    List<OutStorage> findOutStorage(Map map);
    Integer countFindOutStorage(Map<String,Object> map);

    //分页接口
    List<OutStorage> findAllOutStorageByPage(Integer page, Integer limit);
    Integer findAllOutStorage();

    Integer updateState(Map map);

    List<Map<String,Object>> findCustomerName();
    /**
     * 查询所有品牌的名称
     * @return
     */
    List<Map<String,Object>> findBrandName();
    /**
     * 查询所有分类名称
     * @return
     */
    List<Map<String,Object>> findLevelName();
    /**
     * 根据品牌、分类查询商品信息
     * @param map 品牌 分类
     * @return
     */
    List<Map<String, Object>> findOutStorageGoods(Map<String,Object> map);
    Integer countFindOutStorageGoods(Map<String,Object> map);

    OutStorage findOutStorageById(Integer id);

    List<Map<String, Object>> findOutStorageGoodsByOutStorageId(Integer outStorageId);

    Integer deleteOutStorageById(Integer id);

    Integer deleteOutStorageGoodsByOutStorageId(Integer id);

    //全查询
    List<Map<String, Object>> findAllOutStorages();
    Integer countFindAllOutStorages();

    Integer insertOutStorage(Map map);

    Integer updateOutStorage(Map map);
}
